﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace CarSales.Models
{
    public class Owner
    {
        [Key]
        public int OwnId { get; set; }
        [Display(Name = "Name")]
        public string OwnName { get; set; }
        [Display(Name = "Address Line 1")]
        public string OwnAddress1 { get; set; }
        [Display(Name = "Address Line 2")]
        public string OwnAddress2 { get; set; }
        [Display(Name = "Suburb")]
        public string OwnSuburb { get; set; }
        [Display(Name = "State")]
        public string OwnState { get; set; }
        [Display(Name = "Phone")]
        public string OwnContactPhone { get; set; }
        [Display(Name = "Email")]
        public string OwnContactEmail { get; set; }
        public virtual ICollection<Car> Cars { get; set; }
        public virtual ICollection<ImageResource> Images { get; set; }
    }
}